function showBar(obj){
	var editbar = document.createElement("span");
	editbar.id="editbar_"+obj.id;
	
	var deletebar = document.createElement("span");
	deletebar.id="deletebar_"+obj.id;
	
	var bar = document.createElement("span");
	bar.id="bar_"+obj.id;
	bar.appendChild(editbar);
	bar.appendChild(deletebar);
	obj.appendChild(bar);
	
	editbar.innerHTML="edit";
	editbar.onclick=editEvent;
	
	deletebar.innerHTML="delete";
	deletebar.onclick=deleteEvent;
	deletebar.onmouseover=showBar;
}
function hiddenBar(obj){
	var bar = document.getElementById("bar_"+obj.id);
	obj.removeChild(bar);
}

function editEvent(){
	alert("ddd");
}
function deleteEvent(){
	alert("yes");
}